Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

full-icu

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

full-icu

install 'full-icu' data for your current node

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created

What is full-icu?

The full-icu npm package provides full ICU (International Components for Unicode) data for Node.js, enabling comprehensive internationalization support. This includes features like date and time formatting, number formatting, and collation, which are essential for applications that need to support multiple languages and locales.

What are full-icu's main functionalities?

Date and Time Formatting

This feature allows you to format dates and times according to different locales. In this example, the date is formatted in French (France) locale.

const { DateTimeFormat } = require('intl');
const dtf = new DateTimeFormat('fr-FR', { year: 'numeric', month: 'long', day: 'numeric' });
console.log(dtf.format(new Date()));

Number Formatting

This feature enables number formatting according to different locales. The example shows how to format a number as a currency in German (Germany) locale.

const { NumberFormat } = require('intl');
const nf = new NumberFormat('de-DE', { style: 'currency', currency: 'EUR' });
console.log(nf.format(123456.789));

Collation

Collation allows for locale-aware string comparison and sorting. The example demonstrates sorting an array of strings in Spanish (Spain) locale.

const { Collator } = require('intl');
const collator = new Collator('es-ES');
const sorted = ['z', 'a', 'ä'].sort(collator.compare);
console.log(sorted);

Other packages similar to full-icu

Keywords

FAQs

Package last updated on 30 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc